/**
 * @author 
 * @time 2022-04-19 19PM
 * @description 项目配置文件目录
 */

const state = {
    list: []
}

const getters = {
    list(_state) {
        return _state.list
    }
}

const mutations = {
    mutationList(_state, _list) {
        _state.list = _list
    }
}

const actions = {
    //本地更改购物车列表
    changeNum({ commit },data){
        //更改成功扭转数据
        commit('mutationList')
    }
}

export default {
    namespaced: true,
    state,
    getters,
    mutations
}